import numpy as np
import pandas as pd
from pandas import Series,DataFrame

from datetime import datetime
from datetime import timedelta

import pytz

print pytz.common_timezones
print pytz.common_timezones[-5:]
tz = pytz.timezone('US/Eastern')
print tz
rng = pd.date_range('3/9/2012 9:30', periods=6, freq='D')
print rng
ts = Series(np.random.randn(len(rng)), index=rng)
print ts
print ts.index.tz
print pd.date_range('3/9/2012 9:30', periods=6, freq='D', tz='UTC')
print "---------------1--------------------"

p = pd.Period('2007', freq='A-DEC')
print p
print p.asfreq('M', how='start')
print p.asfreq('M', how='end')